package nl.hanze.designpatterns.mvc.gui;

import java.awt.Dimension;

import nl.hanze.designpatterns.mvc.controller.TroubleTicketController;
import nl.hanze.designpatterns.mvc.model.TroubleTicketModel;
import nl.hanze.designpatterns.mvc.view.TroubleTicketView;

public class TempGUI extends GUI{
	
	
	private TroubleTicketModel tempModel;
	private TroubleTicketController tempController;
	private TroubleTicketView allTicketsView;
	
	public TempGUI(){
		this.tempModel = new TroubleTicketModel();
		this.tempController = new TroubleTicketController(tempModel);
		this.allTicketsView = new TroubleTicketView(tempController, tempModel);
		
		this.setTitle("Temporary");
		
		this.setDefaultCloseOperation(EXIT_ON_CLOSE);
		
		this.add(allTicketsView);
		
		
		Dimension d = new Dimension(800, 600);
		this.setSize(d);
		this.setPreferredSize(d);
		
		this.setResizable(false);
		
		this.setVisible(true);
		
		this.setLocationRelativeTo(null);
		
		
	}

}
